#include"shape.h"

#ifdef _MAC_OS_
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif



using namespace std;

Shape::Shape(){
  _pos = vec2f(vec2f(-0.5+((double) rand() / (RAND_MAX)), -0.5+((double) rand() / (RAND_MAX))));
	_color = vec3f(((double) rand() / (RAND_MAX)), ((double) rand() / (RAND_MAX)), ((double) rand() / (RAND_MAX)));
	};

Shape::~Shape(){};

void
Shape::setposition(vec2f pos){
    _pos=pos;
}


void
Shape::setspeed(vec2f speed){
  _speed=speed;
}

void
Shape::setcolor(vec3f color){
  _color=color;
}

void
Shape::setfactor(float f){
  _factor=f;
}


const vec2f&
Shape::getpos() const{
  return _pos;
}


const vec2f&
Shape::getspeed() const{
  return _speed;
}

const vec3f&
Shape::getcolor() const{
  return _color;
}

const float
Shape::getfactor() const{
  return _factor;
}




